package com.hospital.post.feign;

import com.hospital.common.base.Result;
import com.hospital.common.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "audit-module",configuration = FeignConfig.class)
public interface AuditFeign
{
    @GetMapping("/banned/getBannedStatus")
    Result<Integer> getBannedStatus(@RequestParam("sectionId") Long sectionId, @RequestParam("userId")Long userId);

    /**
     * 审核是否有敏感词
     * @param content
     * @return 200没有敏感词 -1有敏感词
     */
    @GetMapping("/postMeta/getViolation")
    Result<Integer> getViolation(@RequestParam("content")String content);

}
